package m1.server;

import m2.component.ComponentInterface;
import m2.service.RequiredService;

public class ServerInterfaceRequired extends ComponentInterface{

	/**
	 * 
	 */
	public ServerInterfaceRequired(){
		//********serverInService********
		RequiredService serverInService = new RequiredService();
		serverInService.setNameService("serverInService");
		setService(serverInService);		
		
		//********receiveRequestServerService********
		RequiredService receiveRequestServerService = new RequiredService();
		receiveRequestServerService.setNameService("receiveRequestServerService");
		setService(receiveRequestServerService);
	}

	@Override
	/**
	 * 
	 */
	public void buildService() {
		serviceUsePorts("serverInService", "ServerIn");
		serviceUsePorts("receiveRequestServerService", "ReceiveRequestServer");
	}
}
